package com.zking.ssm.DYM.service.impl;

import com.zking.ssm.DYM.mapper.HotelMemberMapper;
import com.zking.ssm.DYM.model.HotelMember;
import com.zking.ssm.DYM.service.IHotelMemberService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author XXXXX
 * @Date 2021/01/25 8:34
 */
@Service
public class HotelMemberServiceImpl implements IHotelMemberService {
    @Autowired
    private HotelMemberMapper hotelMemberMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelMemberMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelMember record) {
        return hotelMemberMapper.insert(record);
    }

    @Override
    public HotelMember selectByPrimaryKey(Integer id) {
        return hotelMemberMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(HotelMember record) {
        return hotelMemberMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelMember> list(HotelMember record, PageBean pageBean) {
        List<HotelMember> hotelMemberList = hotelMemberMapper.list(record);
        return hotelMemberList;
    }
}
